package com.dao;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.po.IndustryDetailInfoPO;
@Repository
public class IndustryDetailDao {
	@Autowired
	private SqlSessionTemplate sqlTemplate;
	/**
	 * 按照ID，查找详细的行业动态信息
	 * @param id
	 * @return 
	 */
	public IndustryDetailInfoPO findDetailInfoById(String id) {
		return sqlTemplate.selectOne("newsDetail.findDetailInfoById", id);
	}
	/**
	 * 按照ID，修改详细的行业动态信息
	 * @param detailInfoPO
	 */
	public void updateDetailInfoById(IndustryDetailInfoPO detailInfoPO) {
		sqlTemplate.update("newsDetail.updateDetailInfoById", detailInfoPO);
	}
}
